  using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

namespace project.marcasmotos_dir
{
    public partial class listado_marcasmotos : System.Web.UI.Page
    {
   
        protected void Page_Load(object sender, EventArgs e)
        {
            lo.seguridad(sf.entero(HttpContext.Current.Session["adminantares1"]));
            if (!Page.IsPostBack)
            {
                List<marcasmotos> lista = new List<marcasmotos>();
                lista = marcasmotos.getList();
     
                    Repeater1.DataSource = lista;
                Repeater1.DataBind();    
            }
    
        }
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            List<marcasmotos> lista = new List<marcasmotos>();
            lista = marcasmotos.getListByBusquedaGeneral(txtBusqueda.Text);
            Repeater1.DataSource = lista;
            Repeater1.DataBind();
        }
  
  
    }
}
